package oj0413.oj0413_02;

import java.util.Scanner;

public class Main {
    public static boolean f(String s,String t){
        int i = 0;
        int j = 0;
        while (i < s.length() && j < t.length()){
            if (s.charAt(i) == t.charAt(j)){
                j++;
            }
            i++;
        }
        return j == t.length();
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String  t = sc.next();
        String  s1 = sc.next();
        String  s2 = sc.next();
        boolean res = f(s1,t) && f(s2,t);
        System.out.println(res ? "True" : "False");
        sc.close();
    }
}
